package com.easygoods.dao;

import com.easygoods.base.BaseDao;
import com.easygoods.entity.StoreInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * Created by 许崇雷 on 2018-12-28.
 */
@Repository
public interface StoreInfoDao extends BaseDao<StoreInfo> {
    //增加购买数(可正,可负)
    int increaseStoreBuy(@Param("memberId") String memberId,
                         @Param("buyNum") int buyNum,
                         @Param("buyOriginAmt") BigDecimal buyOriginAmt,
                         @Param("buyMemberAmt") BigDecimal buyMemberAmt,
                         @Param("buyPayAmt") BigDecimal buyPayAmt);
}
